﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Organization.aspx.cs" Inherits="System_Organization"
    MasterPageFile="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>部门</title>
    <link href="../resources/styles/style.css" type="text/css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <table style="width: 100%; height: 100%">
            <tr>
                <td style="width: 45%;" valign="top">
                    <table id="wsd_inputtable" style="width: 100%">
                        <tr>
                            <td class="tabletitle" style="height: 21px" width="100%">
                                树状视图
                            </td>
                        </tr>
                    </table>
                    <table id="wsd_listtable" style="width: 100%; height: 280px">
                        <tr>
                            <td>
                                <div style="height: 100%; overflow-y: auto">
                                    <asp:TreeView ID="TreeOrg" runat="server" ShowLines="True" OnSelectedNodeChanged="TreeOrg_SelectedNodeChanged">
                                        <SelectedNodeStyle BackColor="Silver" Font-Size="Larger" />
                                    </asp:TreeView>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" id="rdRight" runat="server" visible="true">
                    <table id="wsd_inputtable" style="width: 100%; height: 280px;">
                        <tr>
                            <td class="tabletitle" colspan="3" width="100%">
                                部门属性
                            </td>
                        </tr>
                        <tr>
                            <td class="tablefield" style="width: 10%;">
                                <span class="keyword">*</span>名称:
                            </td>
                            <td align="left" colspan="2">
                                <asp:TextBox ID="txtOrgName" class="default" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOrgName"
                                    ErrorMessage="请填写!"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr id="trParentOrg" runat="server">
                            <td class="tablefield" style="width: 15%;">
                                上级组织:
                            </td>
                            <td align="left" colspan="2">
                                <asp:TextBox ID="txtParentOrg" ReadOnly="true" class="default" runat="server"></asp:TextBox>
                               
                            </td>
                        </tr>
                        <tr id="tr1" runat="server">
                            <td class="tablefield"  style="width: 40%;" align="left">
                                <span class="keyword">*</span>管辖区域(国家/省份/城市/区县)：
                            </td>
                            <td class="tablefield"  colspan="2">
                              <h2 style="color:Red">请不要轻易修改，可能会引起下级数据丢失</h2>
                                </td>
                        </tr>
                        <tr>
                            <td colspan="3" align="left" style="padding-left:20px">
                                <asp:DropDownList style="min-width:120px" ID="ddlCountry" AutoPostBack="true" OnSelectedIndexChanged="RegionOnSelectedIndexChanged"
                                    runat="server" DataValueField="COUNTRY_CODE" DataTextField="COUNTRY_NAME">
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlState" style="min-width:120px; height: 18px;"  
                                    AutoPostBack="true" OnSelectedIndexChanged="RegionOnSelectedIndexChanged"
                                    runat="server" DataValueField="STATE_CODE" DataTextField="STATE_NAME">
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlCity" style="min-width:120px" AutoPostBack="true" OnSelectedIndexChanged="RegionOnSelectedIndexChanged"
                                    runat="server" DataValueField="CITY_CODE" DataTextField="CITY_NAME">
                                </asp:DropDownList>
                                <asp:DropDownList ID="ddlDistrict" style="min-width:120px" OnSelectedIndexChanged="RegionOnSelectedIndexChanged"
                                    runat="server" DataValueField="DISTRICT_CODE" DataTextField="DISTRICT_NAME">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="tablefield" style="width: 15%; height: 20px;">
                                是否启用:
                            </td>
                            <td align="left" colspan="2">
                                <asp:CheckBox ID="chkStatus" runat="server" Checked="true" />
                            </td>
                        </tr>
                        <tr>
                            <td class="tablefield" style="width: 15%;">
                                说明:
                            </td>
                            <td align="left" colspan="2">
                                <textarea id="txtRemark" cols="20" rows="5" style="width: 90%;" runat="server"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td class="buttonarea">
                                &nbsp;
                            </td>
                            <td align="center">
                                <asp:RadioButton ID="rdoAdd" runat="server" Text="新增下一级" GroupName="opt" Checked="True"
                                    AutoPostBack="True" OnCheckedChanged="rdoAdd_CheckedChanged" />
                                &nbsp;&nbsp;
                                <asp:RadioButton ID="rdoEdit" runat="server" Text="编辑" GroupName="opt" AutoPostBack="True"
                                    OnCheckedChanged="rdoAdd_CheckedChanged" />
                            </td>
                            <td class="buttonarea" style="width: 20%">
                                <asp:Button ID="btnSave" runat="server" Text="保  存" CssClass="wsd_button2" OnClick="btnSave_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
